home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / ftn / gammar.z / gammar
Encoding:
Text File  |  1998-10-20  |  3.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ggggaaaammmmmmmmaaaarrrr((((3333GGGG))))                                                          ggggaaaammmmmmmmaaaarrrr((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggaaaammmmmmmmaaaarrrr - defines a color map ramp for gamma correction
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ggggaaaammmmmmmmaaaarrrr((((rrrr,,,, gggg,,,, bbbb))))
  13.      iiiinnnntttteeeeggggeeeerrrr****2222 rrrr((((222255556666)))),,,, gggg((((222255556666)))),,,, bbbb((((222255556666))))
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _r   expects an array of 256 elements.  Each element contains a setting
  17.          for the red electron gun.
  18.  
  19.      _g   expects an array of 256 elements.  Each element contains a setting
  20.          for the green electron gun.
  21.  
  22.      _b   expects an array of 256 elements.  Each element contains a setting
  23.          for the blue electron gun.
  24.  
  25. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  26.      ggggaaaammmmmmmmaaaarrrr supplies a level of indirection for all color map and RGB values.
  27.      For example, before the system would turn on the red gun to setting 238,
  28.      the system looks in a table at location 238 and uses the value it finds
  29.      there instead of 238.
  30.  
  31.      Thus, you can use this table to provide gamma correction, to equalize
  32.      monitors with different color characteristics, or to modify the color
  33.      warmth of the monitor.  The default setting has r(_i) = g(_i) = b(_i) = _i.
  34.      (So at location 238 of the red, green, and blue tables, you find the
  35.      value 238.)
  36.  
  37.      When the system is in RGB mode and draws an object, the system writes the
  38.      actual red, green, and blue values to the bitplanes not the indirect
  39.      values.  However, the values that you see when the system draws the
  40.      bitmap to the screen are the indirect values:  r(red), g(green), b(blue)
  41.      (where r,g,b are the arrays last specified by ggggaaaammmmmmmmaaaarrrr)))).
  42.  
  43.      Similarly, when the system is in color map mode and draws an object, the
  44.      system knows that the true color of the object may be color _i, but to
  45.      determine the displayed color, the system finds the red, green, and blue
  46.      values of color _i and displays color _i as r(red), g(green), b(blue).
  47.  
  48. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  49.      color, cmode, mapcol, RGBcol, gamma(6D)
  50.  
  51. NNNNOOOOTTTTEEEESSSS
  52.      This routine is available only in immediate mode.
  53.  
  54.      On the IRIS-4D G, gamma correction in RGB mode uses the top 256 entries
  55.      of the colormap.
  56.  
  57.      ggggaaaammmmmmmmaaaarrrraaaammmmpppp should not be used in new developement.  The X server
  58.      compensates for gamma in colors used by X clients. ggggaaaammmmmmmmaaaarrrraaaammmmpppp will bypass
  59.      this. Use ggggaaaammmmmmmmaaaarrrraaaammmmpppp with caution or a sense of humor.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ggggaaaammmmmmmmaaaarrrr((((3333GGGG))))                                                          ggggaaaammmmmmmmaaaarrrr((((3333GGGG))))
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.                                                                         PPPPaaaaggggeeee 2222
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.